package com.itheima.d7_thread_pool;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * 目标：掌握线程池的创建。
 * |---Executors线程池工具类使用
 */
public class ThreadPoolTest3 {
    public static void main(String[] args) throws Exception {

        final ExecutorService es = Executors.newFixedThreadPool(10);
        es.execute(()-> System.out.println("哈哈哈"));

        es.shutdown();

    }
}
